﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;

namespace Solution.Data
{
   public class ThongkeDAC
    {
        SolutionEntities context = SolutionEntities.Context;
        public List<Thongke> Thongke_GetByTop(string Top, string Where, string Ord)
        {
            var list = context.Thongke_GetByTop(Top, Where, Ord);
            return list.ToList();
        }

        public void Thongke_Insert(Thongke thongke)
        {
            context.Thongke_Insert(thongke.TrId, thongke.Count, thongke.Date, thongke.Month);
        }

        public void Thongke_Update(Thongke thongke)
        {
            context.Thongke_Update(thongke.ThongkeId, thongke.TrId, thongke.Count, thongke.Date, thongke.Month);
        }
    }
}
